# -*- coding: utf-8 -*-
# time: 2025/8/23 19:06
# file: sms_service.py
# author: kai
# email: 1071664616@qq.com

import requests

def send_sms(code: str, phone_number: str):
    """
    发送验证码
    :param code: 验证码
    :param phone_number: 手机号
    :return:
    """
    sms_api = "https://push.spug.cc/send/bQ2Aomq25pjRK3da"
    body = {"number": 5, "code": code, "targets": phone_number}
    response = requests.post(sms_api, json=body)
    if response.status_code == 200:
        return True
    else:
        return False


